<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>商品购物车</title>
  <link rel="stylesheet" href="../static/font/iconfont.css">
  <link rel="stylesheet" href="./public_shop_cart.css">
</head>
<body>

<div class="public-shop-cart">
  <div class="content">
    <span>全部商品 </span>
    <div class="cart-title">
            <span>
                <input type="checkbox" id="all">
                <label for="all">全选</label>
            </span>
      <span>商品</span>
      <span>单价</span>
      <span>数量</span>
      <span>小计</span>
      <span>操作</span>
    </div>
    <div class="cart-detail"3>
      <input type="checkbox">
      <div class="cart-title">
        <img src="2.jpg" alt="">
        <div>
          <a href=""><i>好水果</i> 苹果</a>
          <span><i class="iconfont icon-icon_shezhi"></i><a href="">选服务</a></span>
        </div>

      </div>
      <div class="cart-price">&yen;4.00</div>
      <div class="cart-number">
        <span class="sub">-</span> <input type="text" guohao="mumber" value="1"><span class="plus">+</span>
      </div>
      <div class="cart-subtotal">&yen;4.00</div>
      <div class="cart-oprate"><a href="">删除</a></div>
    </div>
    <div class="cart-detail"3>
      <input type="checkbox">
      <div class="cart-title">
        <img src="3.jpg" alt="">
        <div>
          <a href=""><i>好水果</i> 香蕉</a>
          <span><i class="iconfont icon-icon_shezhi"></i><a href="">选服务</a></span>
        </div>

      </div>
      <div class="cart-price">&yen;5.00</div>
      <div class="cart-number">
        <span class="sub">-</span> <input type="text" guohao="mumber" value="1"><span class="plus">+</span>
      </div>
      <div class="cart-subtotal">&yen;5.00</div>
      <div class="cart-oprate"><a href="">删除</a></div>
    </div>
    <div class="cart-detail"3>
      <input type="checkbox">
      <div class="cart-title">
        <img src="4.jpg" alt="">
        <div>
          <a href=""><i>好水果</i> 菠萝</a>
          <span><i class="iconfont icon-icon_shezhi"></i><a href="">选服务</a></span>
        </div>

      </div>
      <div class="cart-price">&yen;8.00</div>
      <div class="cart-number">
        <span class="sub">-</span> <input type="text" guohao="mumber" value="1"><span class="plus">+</span>
      </div>
      <div class="cart-subtotal">&yen;8.00</div>
      <div class="cart-oprate"><a href="">删除</a></div>
    </div>
    <div class="cart-detail"3>
      <input type="checkbox">
      <div class="cart-title">
        <img src="5.jpg" alt="">
        <div>
          <a href=""><i>好水果</i> 西瓜</a>
          <span><i class="iconfont icon-icon_shezhi"></i><a href="">选服务</a></span>
        </div>

      </div>
      <div class="cart-price">&yen;2.00</div>
      <div class="cart-number">
        <span class="sub">-</span> <input type="text" guohao="mumber" value="1"><span class="plus">+</span>
      </div>
      <div class="cart-subtotal">&yen;2.00</div>
      <div class="cart-oprate"><a href="">删除</a></div>
    </div>
   </div>
</div>
<footer class="public-footer">

</footer>
<style>
  .public-shop-cart > .content {
    width: 1200px;
    background-color: #fff;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
  }
  .public-shop-cart > .content > span{
    font-size: 20px;
    color: #E2231A;
    border-bottom: 1px solid #E2231A;
    height: 30px;
    width: 100px;
    padding: 3px;
  }
  .public-shop-cart > .content > .cart-title{
    height: 32px;
    background-color: #f3f3f3;
    border: 1px solid #eee;
    display: grid;
    grid-template-columns: 100px 1fr 100px 120px 100px 100px;
    align-items: center;
    padding-left: 10px;
  }
  .public-shop-cart > .content > .cart-detail{
    background-color: #fff4e8;
    border-bottom: 1px solid #ddd;
    padding: 20px 5px;
    display: grid;
    grid-template-columns: 40px 1fr 100px 120px 100px 100px;
    align-items: center;
  }
  .public-shop-cart > .content > div.cart-detail:last-of-type{
    border-bottom: none;
  }
  .public-shop-cart > .content >.cart-detail > .cart-title{
    display: flex;
  }
  .public-shop-cart > .content >.cart-detail > .cart-title > div{
    width: 300px;
    padding: 0 15px;
    display: flex;
    flex-flow: column wrap;
  }
  .public-shop-cart > .content >.cart-detail > .cart-title > div > a > i{
    font-style: normal;
    color: #fff;
    background-color: #E2231A;
    border-radius: 3px;
    padding: 0 5px;
  }
  .public-shop-cart > .content >.cart-detail > .cart-title > div > a:hover{
    color: #E2231A;
  }
  .public-shop-cart > .content >.cart-detail > .cart-title > div > span > i{
    color: #E2231A;
    margin-right: 5px;
  }
  .public-shop-cart > .content >.cart-detail > .cart-title > div > span > a:hover{
    color: #E2231A;
  }
  .public-shop-cart > .content >.cart-detail > .cart-title >img{
    width: 80px;
    height: 80px;
  }
  .public-shop-cart > .content > .cart-detail > .cart-number {
    display: flex;
  }
  .public-shop-cart > .content > .cart-detail > .cart-number >input{
    width: 50px;
    height: 20px;
    text-align: center;
    outline: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
  }
  .public-shop-cart > .content > .cart-detail > .cart-number > span{
    width: 20px;
    height: 20px    ;
    border: 1px solid #aaa;
    font-size: 15px;
    text-align: center;
  }
  .public-shop-cart > .content > .cart-detail > .cart-number > span:hover{
    cursor: pointer;
  }
  .public-shop-cart > .content > .cart-btn{
    margin-top: 50px;
    height: 50px;
    display: flex;
    justify-content: end;
    align-items: center;
    border: 1px solid #ddd;
  }
  .public-shop-cart > .content > .cart-btn > span:last-of-type{
    font-size: 20px;
    color: #E2231A;
    margin: 0 10px;
    font-weight: bold;
  }
  .public-shop-cart > .content > .cart-btn > .btn{
    width: 100px;
    height: 100%;
    font-size: 20px;
    color: #fff;
    border: none;
    background-color: #E2231A;
  }
</style>

</body>
</html>